using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmChgChildren")]
    public class ChgChildren
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "ChgChildId", ResourceType = typeof(Resources.ChgChildrensResource))]
        public int ChgChildId { get; set; }

		[ForeignKey("ChgReq")]
		[DataMember, Display(Name = "ChgReqId", ResourceType = typeof(Resources.ChgChildrensResource))]
        public Nullable<int> ChgReqId { get; set; }

		[ForeignKey("Child")]
		[DataMember, Display(Name = "ChildId", ResourceType = typeof(Resources.ChgChildrensResource))]
        public Nullable<int> ChildId { get; set; }

		[DataMember, Display(Name = "EduStatus", ResourceType = typeof(Resources.ChgChildrensResource))]
        public string EduStatus { get; set; }

		[DataMember, Display(Name = "ChildNo", ResourceType = typeof(Resources.ChgChildrensResource))]
        public int ChildNo { get; set; }

		[ForeignKey("Gender")]
		[DataMember, Display(Name = "GenderId", ResourceType = typeof(Resources.ChgChildrensResource))]
        public Nullable<int> GenderId { get; set; }

		[ForeignKey("NamePrefix")]
		[DataMember, Display(Name = "NamePrefixId", ResourceType = typeof(Resources.ChgChildrensResource))]
        public Nullable<int> NamePrefixId { get; set; }

		[DataMember, Display(Name = "ChildName", ResourceType = typeof(Resources.ChgChildrensResource))]
        public string ChildName { get; set; }

		[DataMember, Display(Name = "ChildLastName", ResourceType = typeof(Resources.ChgChildrensResource))]
        public string ChildLastName { get; set; }

		[DataMember, Display(Name = "BirthDate", ResourceType = typeof(Resources.ChgChildrensResource))]
        public Nullable<System.DateTime> BirthDate { get; set; }

		[ForeignKey("EduDegree")]
		[DataMember, Display(Name = "EduDegreeId", ResourceType = typeof(Resources.ChgChildrensResource))]
        public Nullable<int> EduDegreeId { get; set; }

		[ForeignKey("EduIns")]
		[DataMember, Display(Name = "EduInsId", ResourceType = typeof(Resources.ChgChildrensResource))]
        public Nullable<int> EduInsId { get; set; }

		[DataMember, Display(Name = "FeeDateEnd", ResourceType = typeof(Resources.ChgChildrensResource))]
        public Nullable<System.DateTime> FeeDateEnd { get; set; }

		[DataMember, Display(Name = "FeeEdu", ResourceType = typeof(Resources.ChgChildrensResource))]
        public string FeeEdu { get; set; }

		[DataMember, Display(Name = "ChildStatus", ResourceType = typeof(Resources.ChgChildrensResource))]
        public string ChildStatus { get; set; }

		[ForeignKey("Spouse")]
		[DataMember, Display(Name = "SpouseId", ResourceType = typeof(Resources.ChgChildrensResource))]
        public Nullable<int> SpouseId { get; set; }

		[DataMember, Display(Name = "ChildType", ResourceType = typeof(Resources.ChgChildrensResource))]
        public string ChildType { get; set; }

		[DataMember, Display(Name = "Citizen", ResourceType = typeof(Resources.ChgChildrensResource))]
        public string Citizen { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.ChgChildrensResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.ChgChildrensResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.ChgChildrensResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.ChgChildrensResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.ChgChildrensResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual HRM.ChgRequest ChgReq { get; set; }

		public virtual ChgChildren Child { get; set; }

		public virtual MasGender Gender { get; set; }

		public virtual MasNamePrefix NamePrefix { get; set; }

		public virtual MasEduDegree EduDegree { get; set; }

		public virtual MasEduInstitute EduIns { get; set; }

		public virtual ChgSpouse Spouse { get; set; }

    }
}